define('HOST', 'localhost'); define('USER', 'akhwat'); define('PASS', 'Temp!234'); define('DB', 'akhwat'); $con = mysqli_connect(HOST,USER,PASS,DB) or die ('Unable to Connect'); date_default_timezone_set('Asia/Makassar'); $sekarang = date('Y-m-d H:i'); $activeevent = 12; $selected1 = ''; $selected2 = ''; //echo $sekarang; if(isset($_GET['event'])){ $activeevent = $_GET['event']; } if(empty($activeevent)) $activeevent = 12; if($activeevent == 12) $selected1 = 'selected'; else if($activeevent == 12) $selected2 = 'selected'; $getEvent = mysqli_fetch_array(mysqli_query($con, "SELECT * FROM acara WHERE id = '".$activeevent."'")); //$kursi = mysqli_fetch_array(mysqli_query($con, "SELECT * FROM pembayaran WHERE acara = '".$event."'")); //4.00 sampai 21.59 //if(date('H') > 10 && date('H') < 22){ ?>